export const roleOptions = [
  { key: '0', display_name: '系统管理员' },
  { key: '1', display_name: 'XXX' },
  { key: '2', display_name: 'XXXX' },
  { key: '3', display_name: 'XXXXX' }
]

export const roleKeyValue = roleOptions.reduce((acc, cur) => {
  acc[cur.key] = cur.display_name
  return acc
}, {})

export const clickTypeOptions = [
  { key: 'create', display_name: '新建' },
  { key: 'createChild', display_name: '新建子' },
  { key: 'createBrother', display_name: '新建兄弟' },
  { key: 'select', display_name: '更新' }
]

export const clickTypeKeyValue = clickTypeOptions.reduce((acc, cur) => {
  acc[cur.key] = cur.display_name
  return acc
}, {})

export const statusOptions = [
  { key: '0', display_name: '活动' },
  { key: '1', display_name: '禁用' },
  { key: '2', display_name: '删除' }
]

export const statusOptionsData = [
  { key: [0], display_name: '活动' },
  { key: [1], display_name: '禁用' },
  { key: [2], display_name: '删除' }
]

export const postStatusOptions = [
  { key: '0', display_name: '领导' },
  { key: '1', display_name: '普通员工' }
]

export const postStatusOptionsData = [
  { key: [0], display_name: '领导' },
  { key: [1], display_name: '普通员工' }
]
export const ptOptions = [
  { key: '0', display_name: '否' },
  { key: '1', display_name: '是' }
]
export const statusKeyValue = statusOptions.reduce((acc, cur) => {
  acc[cur.key] = cur.display_name
  return acc
}, {})

export const postStatusOptionsValue = postStatusOptions.reduce((acc, cur) => {
  acc[cur.key] = cur.display_name
  return acc
}, {})

export const ptKeyValue = ptOptions.reduce((acc, cur) => {
  acc[cur.key] = cur.display_name
  return acc
}, {})

export const organizationCategoryOptions = [
  { key: '1', display_name: '公司' },
  { key: '2', display_name: '部门' }
]

export const organizationCategoryKeyValue = organizationCategoryOptions.reduce(
  (acc, cur) => {
    acc[cur.key] = cur.display_name
    return acc
  },
  {}
)
// 是否
export const classification = [
  {
    value: '',
    label: '全部'
  },
  {
    value: '1',
    label: '文章'
  },
  {
    value: '2',
    label: '图集'
  },
  {
    value: '3',
    label: '音频'
  },
  {
    value: '4',
    label: '视频'
  }
]
// 是否
export const yesOrNoOptions = [
  { key: 'Y', display_name: '是' },
  { key: 'N', display_name: '否' }
]

// 是否
export const isInnerOption = [
  { key: '1', display_name: '是' },
  { key: '0', display_name: '否' }
]

export const yesOrNoKeyValue = yesOrNoOptions.reduce((acc, cur) => {
  acc[cur.key] = cur.display_name
  return acc
}, {})

export const isInneNoKeyValue = isInnerOption.reduce((acc, cur) => {
  acc[cur.key] = cur.display_name
  return acc
}, {})

export const menuTypeOptions = [
  { key: '0', display_name: '菜单' },
  { key: '1', display_name: '按钮' }
]

export const menuTypeKeyValue = menuTypeOptions.reduce((acc, cur) => {
  acc[cur.key] = cur.display_name
  return acc
}, {})

// 是否记录访问日志(0-否,1-是)
export const logFlagOptions = [
  { key: '0', display_name: '否' },
  { key: '1', display_name: '是' }
]

export const logFlagKeyValue = logFlagOptions.reduce((acc, cur) => {
  acc[cur.key] = cur.display_name
  return acc
}, {})

// 系统用户表-用户职务ID
export const jobtitleOptions = [
  { key: '0', display_name: '总经理' },
  { key: '1', display_name: '职员' }
]

export const jobtitleKeyValue = jobtitleOptions.reduce((acc, cur) => {
  acc[cur.key] = cur.display_name
  return acc
}, {})
// 系统用户表-职务级别ID
export const joblevelOptions = [
  { key: '0', display_name: '副总经理级' },
  { key: '1', display_name: '其它' }
]

export const joblevelKeyValue = joblevelOptions.reduce((acc, cur) => {
  acc[cur.key] = cur.display_name
  return acc
}, {})
// 系统用户表-开户银行ID
export const bankOptions = [
  { key: '0', display_name: '中国银行' },
  { key: '1', display_name: '工商银行' },
  { key: '1', display_name: '建设银行' },
  { key: '1', display_name: '农业银行' }
]

export const bankKeyValue = bankOptions.reduce((acc, cur) => {
  acc[cur.key] = cur.display_name
  return acc
}, {})
// 部门管理员信息配置表-关联用户表-关系类型
export const relationTypeOptions = [
  { key: '0', display_name: '关系类型0' },
  { key: '1', display_name: '关系类型1' }
]

export const relationTypeKeyValue = relationTypeOptions.reduce((acc, cur) => {
  acc[cur.key] = cur.display_name
  return acc
}, {})

// 关联用户表-管理类型
export const managerTypeOptions = [
  { key: '0', display_name: '管理类型0' },
  { key: '1', display_name: '管理类型1' }
]

export const managerTypeKeyValue = managerTypeOptions.reduce((acc, cur) => {
  acc[cur.key] = cur.display_name
  return acc
}, {})

// 岗位类型
export const groupTypeOptions = [
  { key: '0', display_name: '岗位类型0' },
  { key: '1', display_name: '岗位类型1' }
]

export const groupTypeKeyValue = groupTypeOptions.reduce((acc, cur) => {
  acc[cur.key] = cur.display_name
  return acc
}, {})

export const sexOptions = [
  { key: '1', display_name: '男' },
  { key: '2', display_name: '女' },
  { key: '0', display_name: '未知' }
]

export const sexKeyValue = sexOptions.reduce((acc, cur) => {
  acc[cur.key] = cur.display_name
  return acc
}, {})

export const orgTypeOptions = [
  { key: '0', display_name: '组织机构类型0' },
  { key: '1', display_name: '组织机构类型1' },
  { key: '2', display_name: '组织机构类型2' }
]

export const orgTypeKeyValue = orgTypeOptions.reduce((acc, cur) => {
  acc[cur.key] = cur.display_name
  return acc
}, {})

export const orgNatureOptions = [
  { key: '0', display_name: '组织机构性质0' },
  { key: '1', display_name: '组织机构性质1' },
  { key: '2', display_name: '组织机构性质2' }
]

export const orgNatureKeyValue = orgNatureOptions.reduce((acc, cur) => {
  acc[cur.key] = cur.display_name
  return acc
}, {})

// 部门负责人类型
export const orgManagerOptions = [
  { key: '0', display_name: '负责人类型0' },
  { key: '1', display_name: '负责人类型1' }
]

export const orgManagerKeyValue = orgManagerOptions.reduce((acc, cur) => {
  acc[cur.key] = cur.display_name
  return acc
}, {})

// 部门负责人类型
export const componentOptions = [
  { key: 'systemManage/organizationManagement/index', display_name: '组织机构管理' },
  { key: 'systemManage/userManagement/index', display_name: '用户管理' },
  { key: 'systemManage/jobManagement/index', display_name: '岗位管理' },
  { key: 'systemManage/roleManagement/index', display_name: '角色管理' },
  { key: 'systemManage/menuManagement/index', display_name: '菜单管理' },
  { key: 'systemManage/subSystemManagement/index', display_name: '子系统管理' }
]

export const componentKeyValue = componentOptions.reduce((acc, cur) => {
  acc[cur.key] = cur.display_name
  return acc
}, {})

// 菜单图片
export const menuPicOptions = [
  { key: 'systemManage', display_name: 'systemManage' },
  { key: 'dashboard', display_name: 'dashboard' }
]
